package com.grape.demo20220803.jms;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

import javax.jms.Message;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/8/12 10:36
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
@Component
public class MailMessageListener {

    @JmsListener(destination = "jms/query/mail",concurrency = "10")
    public void onMailMessageReceived(Message message){
        System.out.println("message = " + message);
    }
}
